$(function(){

	var saletab = 
		"<div class='sale-tab' name='sale-tab'>" +
			"<ul class='tab-list'>" +
				"<li rel='hot-pro' moduleId = '4001'><a href='../../productManage/goToPage?pagePath=hot-product'>火热爆品-轮播图</a></li>" +
				"<li rel='act-area' moduleId = '4002'><a href='../../productManage/goToPage?pagePath=activity-area' id='tab_act'>活动区</a></li>" +
				"<li rel='ads-area' moduleId = '4003'><a href='../../productManage/goToPage?pagePath=advertisement-area' id='tab_ads'>广告区</a></li>" +
				"<li rel='commission-area' moduleId = '4004'><a href='../../productManage/goToPage?pagePath=commission-area' id='tab_commission'>高返佣专区</a></li>" +
				"<li rel='picker-pro' moduleId = '4005'><a href='../../productManage/goToPage?pagePath=picker-product' id='tab_picker'>精选爆款</a></li>" +
			"</ul>" +
		"</div>";

	$('[name="product-base"] .all-info').prepend(saletab);

	/*
	 * tab当前样式添加
	 * Author:baiy
	 * Date:2015/9/14
	 */
	$('[name="sale-tab"] ul li').each(function(){
		var relVal = $(this).attr('rel');
		$('[name="sale-tab"] ul li').removeClass('active');		
		if(relVal == saletabMenu){
			$(this).addClass('current');
		}
	});

});
